package cn.dada.dadarecipes.community.article.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.NotNull;


@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class ArticleSaveParam {
    @ApiModelProperty(value = "文章id", required = true)
    Long id;
    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "用户id不能为空")
    Long userId;
    @ApiModelProperty(value = "文章标题", required = true)
    String title;
    @ApiModelProperty(value = "文章摘要")
    String articleSummary;
    @ApiModelProperty(value = "图片")
    String imgUrl;
    @ApiModelProperty(value = "视频链接")
    String videoUrl;
    @ApiModelProperty(value = "标记地点")
    String position;
    @ApiModelProperty(value = "文章状态", required = true)
    String articleStatus;

    // 文章内容
    @ApiModelProperty(value = "文章内容", required = true)
    String content;
}
